$().ready( function() {

    $("#CostumeAddForm").validate( {
        rules: {
            "data[Costume][name]": {
                required: true,
                rangelength: [3,45]
            },
            "data[Costume][count]": {
                required: true,
                number: true
            }
        },
        messages: {
            "data[Costume][name]": {
                required: "<?php __('Ingrese el nombre') ?>",
                rangelength: "<?php __('Ingrese entre 3 y 45 caracteres') ?>"
            },
            "data[Costume][count]": {
                required: "<?php __('Ingrese la cantidad') ?>",
                number: "<?php __('Ingrese solo números') ?>"
            }
        }

    } );
} );